package HomeWork;

public class Square {
    private double side;
//Constructor=====================================================================
    public Square(){

    }

    public Square(double side) {
        this.side = side;
    }
//getter and setter==============================================================
    public double getSide() {
        return side;
    }

    public void setSide(double side) {
        this.side = side;
    }
//Method==========================================================================
    public double getPerimeter(){
        return this.side * 4;
    }

    public double getArea(){
        return this.side * this.side;
    }
}
